package com.future.anno;

import com.future.enable.AsyncImportSelector;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义异步编程注解
 */
@Documented
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Import(AsyncImportSelector.class)
public @interface EnableDoAsync {
    boolean value() default true;
    boolean proxyTargetClass() default false;
}
